<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org"
      xmlns:mo="https://gitee.com/aun/Timo">
<head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
</head>
<body class="timo-layout-page">
    <div class="layui-card">
        <div class="layui-card-header timo-card-header">
            <span><i class="fa fa-bars"></i>  用户消息管理</span>
            <i class="layui-icon layui-icon-refresh refresh-btn"></i>
        </div>
        <div class="layui-card-body">
            <div class="layui-row timo-card-screen">
                <div class="pull-left layui-form-pane timo-search-box">
                   
                </div>
                <div class="pull-right screen-btn-group">
                    
                </div>
            </div>
            <div class="timo-table-wrap">
                <table class="layui-table timo-table">
                    <thead>
                    <tr>
                        <th>主键ID</th>
                        <th>类型</th>
                        <th>创建时间</th>
                        <th>消息内容</th>
                        <th>状态</th>
                    <!--     <th>操作</th>
                     --></tr>
                    </thead>
                    <tbody>
                    <tr th:each="item:${list}">
                        <td th:text="${item.id}">主键ID</td>
                        <td>
							<div th:switch="${item.type}">
							  <p th:case="'1'">信息</p>
							  <p th:case="2">商铺</p>
							  <p th:case="3">广告</p>
							</div>
							</td>
                        <td th:text="${#dates.format(item.createDate, 'yyyy-MM-dd HH:mm:ss')}">创建时间</td>
                        <td th:text="${item.content}">消息内容</td>
                        <td><div th:switch="${item.isread}">
							  <p th:case="'0'">未读</p>
							  <p th:case="1">已读</p>
							</div>
						</td>
                        
                    </tr>
                    </tbody>
                </table>
            </div>
            <div th:replace="/common/fragment :: page"></div>
        </div>
    </div>
<script th:replace="/common/template :: script"></script>
</body>
</html>